package cn.hxth.api.service;

import cn.hxth.api.model.Plant;
import cn.hxth.api.query.PageResult;
import cn.hxth.api.query.PlantQueryObject;

/** 车间操作服务层
 * @author xia
 */
public interface IPlantService {
    public boolean insertPlant(Plant plant);

    public boolean updatePlant(Plant plant);

    public boolean removePlant(Integer cid) ;

    public  Plant getPlant(Integer cid) ;

    /**
     * 为发送mq的更新操作做准备
     * @param cid
     * @return
     */
    public  Plant getPlantForMq(Integer cid) ;
    public PageResult findAll(PlantQueryObject plantQueryObject) ;

    /**
     * 更新车间入库次数
     * @param cid
     * @return
     */
    public boolean updatePlantInstockRecordTime(int cid);
}